import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;

public class StringExtractor {

    public static void main(String[] args) {
        String filePath = "path/to/source/file.txt"; // 替换为源代码文件的路径

        try (BufferedReader reader = new BufferedReader(new FileReader(filePath))) {
            StringBuilder stringBuilder = new StringBuilder();
            int currentChar;
            boolean isInsideString = false;
            boolean isEscaped = false;

            while ((currentChar = reader.read()) != -1) {
                char character = (char) currentChar;

                if (isInsideString) {
                    if (isEscaped) {
                        stringBuilder.append(character);
                        isEscaped = false;
                    } else {
                        if (character == '\\') {
                            isEscaped = true;
                        } else if (character == '"') {
                            isInsideString = false;
                            System.out.println(stringBuilder.toString());
                            stringBuilder.setLength(0);
                        } else {
                            stringBuilder.append(character);
                        }
                    }
                } else {
                    if (character == '"') {
                        isInsideString = true;
                    }
                }
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}